package com.songhq.zonghe.work;

public class MyRunnable implements Runnable{
	
	private String name;

	public MyRunnable(String name){
		this.name=name;
	}
	@Override
	public void run() {
		try {
			Thread.sleep(5000);
		} catch (InterruptedException e) {
			e.printStackTrace();
			System.out.println("这个任务休眠失败");
		}
		System.out.println(Thread.currentThread().getName()+"这个runnable的名字的是"+name);
	}
}
